/**
 * 查询购物车Api
 * @param params
 * @returns {*}
 */
const cartListApi = (params) => {
    return $axios({
        url: '/shoppingCart/list',
        method: 'get',
        params
    })
}

const deleteOne = (params) => {
    return $axios({
        url: '/shoppingCart',
        method: 'delete',
        params
    })
}


const clean = (params) => {
    return $axios({
        url: '/shoppingCart/clean',
        method: 'delete',
        params
    })
}

const changeAmountApi = (params) => {
    return $axios({
        url: '/shoppingCart/changeAmount',
        method: 'put',
        data: {...params}
    })
}

const addGoodsToShoppingCart = (params) => {
    return $axios({
        url: `/shoppingCart/add/`,
        method: 'post',
        data: {...params}
    })
}